﻿using System;

class PriorityQueueTest
{
    static void Main(string[] args)
    {
        PriorityQueue<int> priorityQueue = new PriorityQueue<int>();
        int n = int.Parse(Console.ReadLine());
        for (int i = n; i > 0; i--)
        {
            priorityQueue.Enqueue(i);
        }
        while(priorityQueue.Count>0)
        {
            Console.Write(priorityQueue.Dequeue()+ " ");
        }
        Console.WriteLine();
    }
}
